package com.huse.usermanager.service.impl;

import com.huse.usermanager.entity.SysOrg;
import com.huse.usermanager.mapper.SysOrgMapper;
import com.huse.usermanager.service.SysOrgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统组织结构表 服务实现类
 * </p>
 *
 * @author xinxin
 * @since 2021-05-27
 */
@Service
public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> implements SysOrgService {
    @Autowired
    private SysOrgMapper sysOrgMapper;
    @Override
    public List<SysOrg> getOrgTree() {
        return sysOrgMapper.getOrgTree();
    }
}
